package sk.naive.talker.props;

/**
 * NumericIntegerProperty.
 *
 * @author <a href="mailto:rytier@naive.deepblue.sk">Martin "Rytier" Kerni</a>
 * @version $Revision: 1.1 $ $Date: 2005/01/11 23:52:53 $
 */
public class NumericIntegerProperty extends SimpleProperty {
	public Integer defaultValue() {
		return 0;
	}

	public Object toObject(String s) {
		return Integer.parseInt(s);
	}

	public boolean checkValue(Object o) {
		return ((Integer) o) >= 0;
	}
}
